package com.dailyblue.java.spring.cloud.jwt.gateway.mapper;

import com.dailyblue.java.spring.cloud.example.commons.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("select * from user where usercode=#{name} and password=md5(#{pass})")
    User login(@Param("name") String name, @Param("pass") String pass);
}
